﻿using UnityEngine;

public class HumanBody : MonoBehaviour
{
    public int ID { get; protected set; } = 1;

    /// <summary>
    /// 获得伤害
    /// </summary>
    /// <param name="id">制造者ID</param>
    /// <param name="offset">击退量</param>
    /// <param name="damage">伤害值</param>
    /// <param name="damageType">伤害类型</param>
    public virtual void ITakeDamage(int id,float offset, float damage,DamageType damageType=DamageType.普通)
    {
        
    }

    /// <summary>
    /// 获得Buff
    /// </summary>
    /// <param name="id">给予者ID</param>
    /// <param name="buff">获得的Buff</param>
    public virtual void ITakeBuff(int id, BuffBase buff)
    {

    }

    /// <summary>
    /// 血量恢复
    /// </summary>
    /// <param name="value">血量</param>
    /// <returns>加了多少血</returns>
    public virtual float IHealthRecover(float value)
    {
        return 0;
    }

}
